﻿$(document).ready(function() {
});


// Valid Proof
function vp(rid, value){
	$.ajax({
	   type: "POST",
	   url: "ajax/valid_proof.ajax.php",
	   data: "rid="+rid+"&val="+value+"&token="+$('input[name=token]').val(),
	   success: function(msg){
		 html = '[ERROR]';
		 if(msg=='true') {
			if(value==1){
				html = '<img src="media/img/icons/valid.png" />';
			}else if(value==0){
				html = '<img src="media/img/icons/notvalid.png" />';
			}else{
				html = '???';
			}
		 }
		 $('#sb-title-inner button').remove();
		 $('#sb-title-inner').append(html);
		 //$('#sb-wrapper-inner').html( msg );
	   }
	 });
}